<template>
  <div class="badge-box">
    <div class="badge-item">
      <CloudBadge :count="100" :offset="offset">
        <div>变更通知</div>
      </CloudBadge>
    </div>
    <div class="badge-item">
      <CloudBadge :count="99" :overflow-count="10" show-zero :offset="offset">
        <div>变更通知</div>
      </CloudBadge>
    </div>
    <div class="badge-item">
      <CloudBadge :count="1000" :overflow-count="999" :offset="offset">
        <div>变更通知</div>
      </CloudBadge>
    </div>
  </div>
</template>

<script>
  export default {
    title: '2.封顶数字',
    subTitle: '封顶数字（超过 overflowCount 的会显示为 ${overflowCount}+，默认的 overflowCount 为 99）',
    data () {
      return {
        offset: [9, -8]
      }
    },
    methods: {
    }
  }
</script>

<style lang="scss">
  .badge-box {
    display: flex;
  }
  .badge-item {
    padding: 0 20px;
  }
</style>